//
//  DiscoAndProController.h
//  MBObjectServer
//
//  Created by WorkSpace on 4/2/14.
//  Copyright (c) 2014 MBpayer. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "MBBaseServer.h"
#import "PromotionModelResult.h"
#import "PromotionModel.h"
#import "EPOSDiscountTicket.h"
#import "EPOSCcCouponCardInfo.h"
#import "DiscountMesModel.h"
@interface DiscoAndProController : NSObject
{
    PromotionModelResult *promotionModelResult;
    EPOSDiscountTicket *discountTicket;
    EPOSCcCouponCardInfo *ccCouponCardInfo;
    DiscountMesModel * discountmodel;
}
typedef  void (^ReceiveFailure) (NSError *error);



//促销规则
typedef  void (^ReceiveSuccessPro) (PromotionModelResult *proReceiveData);
//折扣
typedef  void (^ReceiveSuccessDis) (DiscountMesModel *disReceiveData , NSMutableArray *detailEntitys);
//打折券
typedef  void (^ReceiveSuccessCcC) (EPOSCcCouponCardInfo *CcCReceiveData);



//折扣
-(void)DoDiscount:(NSMutableArray *)detailEntitys
             IsWholeOrder:(NSNumber *)isWholeOrder
             DiscountRate:(NSNumber *)discountRate
            DiscountPrice:(NSNumber *)discountPrice
                     Mode:(NSNumber *)mode
           DisOnBillPrice:(NSNumber *)disOnBillPrice
                   Remark:(NSString *)remark
               RemarkCode:(NSString *)remarkCode
                  Success:(ReceiveSuccessDis)processSuccess
                  Failure:(ReceiveFailure)processFailure;
//打折券
-(void)VerifyTicketForClient:(NSString *)ticketNo
                      CardNo:(NSString *)cardNo
                     Success:(ReceiveSuccessCcC)receiveSuccessCcC
                     Failure:(ReceiveFailure)processFailure;
//促销规则
-(void)RetrievePromtionRules:(ReceiveSuccessPro)receiveSuccessPro
                     Failure:(ReceiveFailure)processFailure;
-(void)UpdatePromotStatus:(NSMutableArray *)promotionRuleSelects
                  Success:(ReceiveSuccessPro)receiveSuccessPro
                  Failure:(ReceiveFailure)processFailure;
@end
